/**
 * Project Name:template-generator
 * File Name   :FieldModel.java
 * Package Name:org.cn.template.component
 * Date:2015年9月28日下午8:19:54
 * Copyright (c) 2015, http://my.oschina.net/httpssl All Rights Reserved.
 *
*/

package org.cn.template.component;

/**
 * ClassName:FieldModel <br/>
 * Function :TODO ADD FUNCTION. <br/>
 * Reason	:TODO ADD REASON. <br/>
 * Date     :2015年9月28日 下午8:19:54 <br/>
 * @author  :http://my.oschina.net/httpssl
 * @email   :491835898@QQ.COM
 * @since   :JDK 1.7
 * @see 	 
 */
public class FieldModel
{
	private String columnName;
	private String fieldName;

	public FieldModel(String columnName, String fieldName) {
		this.columnName = columnName;
		this.fieldName = fieldName;
	}

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public String getUcolumnName() {
		return columnName.substring(0, 1).toUpperCase() + columnName.substring(1);
	}
}
